As we witness the detrimental effects of climate change, the need for a rapid shift to renewable energy is only becoming more urgent. One of the most efficient forms of renewable energy, solar power, is generated by solar cells, which are the building blocks of solar panels. These electronic devices use semiconductors to convert the energy of light into electricity, a process called the photovoltaic effect.